package com.syt.suan.system.domain.dtos;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(name = "用户新增DTO", description = "包含新增用户接口所需信息的传输对象")
public class UserAddDTO {

    @NotBlank(message = "账号不能为空")
    private String userAccount;

    @NotBlank(message = "密码不能为空")
    private String password;

    private String nickName;

    @NotNull(message = "操作员不能为空")
    private Long createBy;
}
